//
//  ViewController.m
//  runTime(动态决议和消息在换发)
//
//  Created by macOS on 2017/4/21.
//  Copyright © 2017年 macOS. All rights reserved.
//

#import "ViewController.h"
#import "XXViewOne.h"
@interface ViewController ()<PersonDelegate>

@end

@implementation ViewController
{
    XXViewOne *_v;

}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    XXViewOne *v =[XXViewOne new];
    v.p.delegate = self;
    _v = v;
//    [v xx];

    
}


- (void)run:(Person *)person{
    
    NSLog(@"%s",__FUNCTION__);

}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

    [_v testDelegateFunIsCalledl];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
